<?php
/**
 * oscshop2 B2C电子商务系统
 *
 * ==========================================================================
 * @link      http://www.oscshop.cn/
 * @copyright Copyright (c) 2015-2017 oscshop.cn. 
 * @license   http://www.oscshop.cn/license.html License
 * ==========================================================================
 *
 * @author    李梓钿
 *
 * 余额  2017-03-11 api接口
 * 
 */
namespace osc\member\controller;
use osc\common\controller\AdminBase;
use think\Db;
class PredepositBackend extends AdminBase{
	
	protected function _initialize(){
		parent::_initialize();
		$this->assign('breadcrumb1','会员');
		$this->assign('breadcrumb2','会员余额');
	}

	public function index(){     	

		$param=input('param.');
		
		$query=[];
		
		if(isset($param['username'])){		
			$map['username']=['like',"%".$param['username']."%"];
			$query['username']=urlencode($param['username']);
		}
		
		$map['pay_status']=['eq',1];
		
		$list=Db::name('predeposit')->where($map)->paginate(config('page_num'),false,$query);
		
		$this->assign('list',$list);
				
		$this->assign('empty','<tr><td colspan="20">没有数据~</td></tr>');
		
    	return $this->fetch();
	 }

}